<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <pre>
        import time
        class Person():
            def __init__(self, name, age):
                self.name = name
                self.age = age

            def speak(self):
                print(f"当前对象的姓名：{self.name},年龄为：{self.age}", end='')


        class Student(Person):
            def __init__(self, name, age, school, my_id):
                super(Student, self).__init__(name, age)
                self.school = school
                self.my_id = my_id

            def speak(self):
                super(Student, self).speak()
                print(f"学校为：{self.school} ,学号为：{self.my_id}", end=',')

            def run(self, v, time):
                print(f"该学生在{time}分钟时间内，速度为{v},跑步距离为{v * time}米")


        class CollageStudent(Student):
            def __init__(self, name, age, school, my_id, language):
                super(CollageStudent, self).__init__(name, age, school, my_id)
                self.language = language

            def speak(self):
                super(CollageStudent, self).speak()
                print(f"学习的语言为:{self.language}", end='')

            def coding(self):
                while True:
                    print("I am coding......")
                    time.sleep(10)

        if __name__ == '__main__':
            p1 = Person("张三", 20)
            p1.speak()
            print()
            p2 = Student("张三", 20, "XAUT", "001")
            p2.speak()
            p2.run(10, 20)
            print()
            p3 = CollageStudent("张三", 20, "XAUT", "001","English")
            p3.speak()
            p3.coding()
    </pre>
</body>
</html>